//EagerSingleton.java
package singletonAndMultiton;

/**
 * create the object at the load time.
 *@author:youtubezou
 *@version:2012-7-13
 */
public class EagerSingleton {
	private static EagerSingleton m_instance = new EagerSingleton();
	
	public static void main(String[] args) {
		System.out.println(EagerSingleton.getInstance());
	}
	
	private  EagerSingleton(){}
	public static EagerSingleton getInstance(){
		return m_instance;
	}
	
	public String toString() {
		return "this is EagerSingleton";
	}
}
